package com.msb.apiboss.service;

import com.msb.apiboss.remote.ServiceDriverUserClient;
import com.msb.internalcommon.dto.DriverUser;
import com.msb.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: WuWen
 * @Date: 2023/8/22 - 08 - 22 - 15:51
 * @Description: com.msb.apiboss.service
 * @version: 1.0
 */
@Service
public class DriverUserService {

    @Autowired
    private ServiceDriverUserClient ServiceDriverUserClient;

    public ResponseResult addDriverUser(DriverUser driverUser ){
        return ServiceDriverUserClient.addDriverUser(driverUser);

    }

    public ResponseResult update(DriverUser driverUser) {
        return ServiceDriverUserClient.updateDriverUser(driverUser);
    }
}
